/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LENOVO
 * Date: 2024-08-06
 * Time: 20:10
 */
public class Test {
    public static void main(String[] args) {
        IOperations linkListOpe = new MySingleLinkedList();
        linkListOpe.creatLinkedList();
/*        linkListOpe.display();
        linkListOpe.addFirst(0);
        linkListOpe.display();
        linkListOpe.addTail(9);
        linkListOpe.display();
        System.out.println(linkListOpe.contains(9));
        System.out.println(linkListOpe.size());*/
        linkListOpe.addWithIndex(0,99);
        linkListOpe.addWithIndex(1,100);
        linkListOpe.addWithIndex(2,99);
        linkListOpe.addWithIndex(2,99);
        linkListOpe.addWithIndex(4,88);
/*        linkListOpe.addWithIndex(-1,88);*/
        linkListOpe.deleteEle(100);
        linkListOpe.deleteEle(102);
/*        1 99 99 88 2 3 4 */
        linkListOpe.deleteAllEle(99);
/*        linkListOpe.deleteEle(1);//删除第一个*/
        linkListOpe.display();


    }
}
